package com.jh.service;


import com.jh.dto.*;
import com.jh.entity.Employee;
import com.jh.result.PageResult;

public interface EmployeeService {
    /**
     * 员工登录
     *
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    /**
     * 密码修改
     *
     * @param passwordEditDTO
     * @return
     */
    void updatePassword(PasswordEditDTO passwordEditDTO);

    /**
     * 员工分页查询
     *
     * @param employeePageQueryDTO
     */
    PageResult page(EmployeePageQueryDTO employeePageQueryDTO);

    /**
     * 员工修改
     *
     * @param employeeDTO
     */
    void edit(EmployeeDTO employeeDTO);

    /**
     * 员工删除
     * @param id
     */
    void delete(Long id);

    /**
     * 员工新增
     *
     * @param employeeDTO
     * @return
     */
    String save(EmployeeDTO employeeDTO);
}
